<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>欢迎登录当当网在线购物平台</title>
	<link href="<%=basePath%>css/style.css" rel="stylesheet" type="text/css" />
	<script language="JavaScript" src="<%=basePath%>js/jquery.js"></script>
	<script src="<%=basePath%>js/cloud.js" type="text/javascript"></script>
	
	<script language="javascript">
		$(function() {
			$('.loginbox').css({
				'position' : 'absolute',
				'left' : ($(window).width() - 692) / 2
			});
			$(window).resize(function() {
				$('.loginbox').css({
					'position' : 'absolute',
					'left' : ($(window).width() - 692) / 2
				});
			})
		});
	</script>
</head>

<body style="background-color: #1c77ac; background-image: url(images/light.png); 
      background-repeat: no-repeat; background-position: center top; overflow: hidden;">

	<div id="mainBody">
		<div id="cloud1" class="cloud"></div>
		<div id="cloud2" class="cloud"></div>
	</div>


	<div class="logintop">
		<span>欢迎登录当当网在线购物平台</span>
	</div>

	<div class="loginbody">
		<form action="<%=basePath%>user/login" method="post">
			<div class="loginbox">
				<ul>
					<li>
						<input name="username" type="text" class="loginuser"
						value="用户名" onclick="JavaScript:this.value=''" />
					</li>
					<li>
						<input name="userpwd" type="text" class="loginpwd"
						value="密码" onclick="JavaScript:this.value=''" />
					</li>
					<li>
						<input type="submit" class="loginbtn" value="登录">
						<label>
							<a href="<%= basePath %>regist.jsp">没有账户？注册一个！</a>
						</label>
					</li>
				</ul>
			</div>
		</form>
	</div>

	<div class="loginbm">王凯制作</div>
</body>

</html>
